/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package com.azon.left.hand;

/**
 *
 * @author Mahdan Ahmad F A
 */
public class thinnedNumberGuesser extends Guesser {

    @Override
    public String doGueess(String chain_code) {
        String number = "";
        
        String  code        = getChainCode(chain_code);
        int[]   frequency   = getFrequency(chain_code);
        String  sequence    = getSequence(chain_code);
        
        int kurvaCembungKanan   = cekKurvaCembungKanan(sequence);
        int kurvaCembungKiri    = cekKurvaCembungKiri(sequence);
        int garisLurus          = cekGarisLurus(code);
        int garisMiring         = cekGarisMiring(sequence);
        
        number += "Cembung Kanan = " + kurvaCembungKanan +"; Cembung Kiri = " + kurvaCembungKiri;
        number += "; Garis Lurus = " + garisLurus + "; Garis Miring = " + garisMiring;
        
        return number;
    }
    
}
